package com.qf.enums;

import lombok.Data;


public enum ApiEnum {
    SUCCESS(200,"成功"),FAIL(500,"失败"),USER_NAME_OR_PWD_ERROR(10000,"用户名或密码错误");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ApiEnum(int code, String messgae){
        this.code=code;
        this.message=messgae;
    }
}
